Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 52b9cca367b64a863ede10f89d443b0a4e8805f8


Parents : 089816c
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-05-02T06:06:04-05:00

fix(tests): update import path for benchmark tests to ensure correct module loading

Changes

1 files changed, 2 insertions(+), 2 deletions(-)


Diff

diff --git a/tests/backend/run_comprehensive_benchmarks.py b/tests/backend/run_comprehensive_benchmarks.py
index 19b8c79b..1144896b 100644
--- a/tests/backend/run_comprehensive_benchmarks.py
+++ b/tests/backend/run_comprehensive_benchmarks.py
@@ -8,8 +8,8 @@ import sys
import tempfile
import time
-# Ensure we can import meshchatx
-sys.path.append(os.getcwd())
+_REPO_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
+sys.path.insert(0, _REPO_ROOT)
import json


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────